package com.namecard.namecardapi.mapper;

import com.baomidou.dynamic.datasource.annotation.DS;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.namecard.namecardapi.entity.Country;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
@DS("sharding")
public interface CountryMapper extends BaseMapper<Country> {
    List<Country> getProvinceByCountryName(@Param("countryName") String countryName);

    List<Country> getProvinceByCountryId(@Param("countryId") Integer countryId);
}

